package com.mezz.bones.im.logic.domain.context;

import com.mezz.bones.im.common.enums.RelationTypeEnum;
import com.mezz.bones.im.common.message.base.MessageHeader;
import com.mezz.bones.im.common.message.body.in.PrivateMessageCreateReq;
import com.mezz.bones.im.common.domain.user.ImUserConnectInfo;
import com.mezz.bones.im.logic.domain.bo.ChatConversationInitBo;
import com.mezz.bones.im.logic.domain.entity.ChatConversation;
import com.mezz.bones.im.logic.domain.entity.ChatUser;
import lombok.Data;

import java.util.Date;

@Data
public class PrivateMessageCreateCtx {


    /**
     * 消息发送者客户端连接对象
     */
    private ImUserConnectInfo senderUserConnectInfo;
    private MessageHeader header;
    private ChatUser sender;
    private ChatUser receiver;
    private ChatUser relationInfo;
    private PrivateMessageCreateReq body;
    private Date now;

    private ChatConversationInitBo userConversationInitBo;
    private ChatConversationInitBo peerConversationInitBo;

    private RelationTypeEnum senderRelationTypeEnum;

    /**
     * 消息记录主键ID 双向数据
     */
    private String userMsgRecordId;
    private String peerMsgRecordId;

    private ChatConversation userConversation;
    private ChatConversation peerConversation;

    /**
     * 自动回复内容
     */
    private String replayAutoContent;
}
